package com.yft.entity.base;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.MappedSuperclass;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;

@MappedSuperclass
public class BaseEntity implements Serializable{

	private static final long serialVersionUID = -8330242781900353713L;

	public BaseEntity(){}
	
	public BaseEntity(BaseEntity e){
		this.createTime = e.createTime;
		this.updateTime = e.updateTime;
		this.isDelete = e.isDelete;
	}
	
	@Temporal(TemporalType.TIMESTAMP)
    @Column(updatable = false)
    private Date createTime;

    @Temporal(TemporalType.TIMESTAMP)
    private Date updateTime;

    @Column(length=1)
    private Integer isDelete;

	@Transient
	@Temporal(TemporalType.TIMESTAMP) 
	private Date seb_createTime;

	@Transient
	@Temporal(TemporalType.TIMESTAMP)
	private Date see_createTime;

	@Transient
	@Temporal(TemporalType.TIMESTAMP)
	private Date seb_updateTime;

	@Transient
	@Temporal(TemporalType.TIMESTAMP)
	private Date see_updateTime;
	
	@Transient
	private String sec_fetchString;

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Integer getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(Integer isDelete) {
		this.isDelete = isDelete;
	}

	public Date getSeb_createTime() {
		return seb_createTime;
	}

	public void setSeb_createTime(Date seb_createTime) {
		this.seb_createTime = seb_createTime;
	}

	public Date getSee_createTime() {
		return see_createTime;
	}

	public void setSee_createTime(Date see_createTime) {
		this.see_createTime = see_createTime;
	}

	public Date getSeb_updateTime() {
		return seb_updateTime;
	}

	public void setSeb_updateTime(Date seb_updateTime) {
		this.seb_updateTime = seb_updateTime;
	}

	public Date getSee_updateTime() {
		return see_updateTime;
	}

	public void setSee_updateTime(Date see_updateTime) {
		this.see_updateTime = see_updateTime;
	}

	public String getSec_fetchString() {
		return sec_fetchString;
	}

	public void setSec_fetchString(String sec_fetchString) {
		this.sec_fetchString = sec_fetchString;
	}
}
